﻿
using System;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using System.Collections.Generic;
using hsgsSHXX.DBUtility;//Please add references
namespace hsgsSHXX.DAL
{
	/// <summary>
	/// 数据访问类:hsczrk_dysj
	/// </summary>
    public partial class hsczrk_dysj
    {
        public hsczrk_dysj()
        { }
        #region  BasicMethod



        /// <summary>
        /// 增加一条数据
        /// </summary>
        public int Add(hsgsSHXX.Model.hsczrk_dysj model)
        {
            StringBuilder strSql = new StringBuilder();
            strSql.Append("insert into hsczrk_dysj(");
            strSql.Append("DYRQ,CZRKXM,CZRKCYM,CZRKXB,CZRKMZ,CZRKCSRQ,CZRKCSDGJ,CZRKCSDSSX,JLX,CZRKCSDXZ,CZRKJGGJ,CZRKJGSSX,CZRKWHCD,CZRKHYZK,CZRKBYZK,CZRKSG,CZRKZY,CZRKFWCS,CZRKSSSSXQ,CZRKZZ,CZRKHH,CZRKJTGX,GMSFHM)");
            strSql.Append(" values (");
            strSql.Append("@DYRQ,@CZRKXM,@CZRKCYM,@CZRKXB,@CZRKMZ,@CZRKCSRQ,@CZRKCSDGJ,@CZRKCSDSSX,@JLX,@CZRKCSDXZ,@CZRKJGGJ,@CZRKJGSSX,@CZRKWHCD,@CZRKHYZK,@CZRKBYZK,@CZRKSG,@CZRKZY,@CZRKFWCS,@CZRKSSSSXQ,@CZRKZZ,@CZRKHH,@CZRKJTGX,@GMSFHM)");
            strSql.Append(";select @@IDENTITY");
            SqlParameter[] parameters = {
					new SqlParameter("@DYRQ", SqlDbType.DateTime),
					new SqlParameter("@CZRKXM", SqlDbType.NVarChar,20),
					new SqlParameter("@CZRKCYM", SqlDbType.NVarChar,10),
					new SqlParameter("@CZRKXB", SqlDbType.NVarChar,1),
					new SqlParameter("@CZRKMZ", SqlDbType.NVarChar,2),
					new SqlParameter("@CZRKCSRQ", SqlDbType.NVarChar,8),
					new SqlParameter("@CZRKCSDGJ", SqlDbType.NVarChar,10),
					new SqlParameter("@CZRKCSDSSX", SqlDbType.NVarChar,50),
					new SqlParameter("@JLX", SqlDbType.NVarChar,12),
					new SqlParameter("@CZRKCSDXZ", SqlDbType.NVarChar,50),
					new SqlParameter("@CZRKJGGJ", SqlDbType.NVarChar,20),
					new SqlParameter("@CZRKJGSSX", SqlDbType.NVarChar,50),
					new SqlParameter("@CZRKWHCD", SqlDbType.NVarChar,10),
					new SqlParameter("@CZRKHYZK", SqlDbType.NVarChar,2),
					new SqlParameter("@CZRKBYZK", SqlDbType.NVarChar,20),
					new SqlParameter("@CZRKSG", SqlDbType.NVarChar,10),
					new SqlParameter("@CZRKZY", SqlDbType.NVarChar,10),
					new SqlParameter("@CZRKFWCS", SqlDbType.NVarChar,100),
					new SqlParameter("@CZRKSSSSXQ", SqlDbType.NVarChar,50),
					new SqlParameter("@CZRKZZ", SqlDbType.NVarChar,50),
					new SqlParameter("@CZRKHH", SqlDbType.NVarChar,50),
					new SqlParameter("@CZRKJTGX", SqlDbType.NVarChar,2),
                    new SqlParameter("@GMSFHM", SqlDbType.NVarChar,18),};
            parameters[0].Value = model.DYRQ;
            parameters[1].Value = model.CZRKXM;
            parameters[2].Value = model.CZRKCYM;
            parameters[3].Value = model.CZRKXB;
            parameters[4].Value = model.CZRKMZ;
            parameters[5].Value = model.CZRKCSRQ;
            parameters[6].Value = model.CZRKCSDGJ;
            parameters[7].Value = model.CZRKCSDSSX;
            parameters[8].Value = model.JLX;
            parameters[9].Value = model.CZRKCSDXZ;
            parameters[10].Value = model.CZRKJGGJ;
            parameters[11].Value = model.CZRKJGSSX;
            parameters[12].Value = model.CZRKWHCD;
            parameters[13].Value = model.CZRKHYZK;
            parameters[14].Value = model.CZRKBYZK;
            parameters[15].Value = model.CZRKSG;
            parameters[16].Value = model.CZRKZY;
            parameters[17].Value = model.CZRKFWCS;
            parameters[18].Value = model.CZRKSSSSXQ;
            parameters[19].Value = model.CZRKZZ;
            parameters[20].Value = model.CZRKHH;
            parameters[21].Value = model.CZRKJTGX;
            parameters[22].Value = model.GMSFHM;

            object obj = DbHelperSQL_Jichu.GetSingle(strSql.ToString(), parameters);
            if (obj == null)
            {
                return 0;
            }
            else
            {
                return Convert.ToInt32(obj);
            }
        }
        /// <summary>
        /// 更新一条数据
        /// </summary>
        public bool Update(hsgsSHXX.Model.hsczrk_dysj model)
        {
            StringBuilder strSql = new StringBuilder();
            strSql.Append("update hsczrk_dysj set ");
            strSql.Append("DYRQ=@DYRQ,");
            strSql.Append("CZRKXM=@CZRKXM,");
            strSql.Append("CZRKCYM=@CZRKCYM,");
            strSql.Append("CZRKXB=@CZRKXB,");
            strSql.Append("CZRKMZ=@CZRKMZ,");
            strSql.Append("CZRKCSRQ=@CZRKCSRQ,");
            strSql.Append("CZRKCSDGJ=@CZRKCSDGJ,");
            strSql.Append("CZRKCSDSSX=@CZRKCSDSSX,");
            strSql.Append("JLX=@JLX,");
            strSql.Append("CZRKCSDXZ=@CZRKCSDXZ,");
            strSql.Append("CZRKJGGJ=@CZRKJGGJ,");
            strSql.Append("CZRKJGSSX=@CZRKJGSSX,");
            strSql.Append("CZRKWHCD=@CZRKWHCD,");
            strSql.Append("CZRKHYZK=@CZRKHYZK,");
            strSql.Append("CZRKBYZK=@CZRKBYZK,");
            strSql.Append("CZRKSG=@CZRKSG,");
            strSql.Append("CZRKZY=@CZRKZY,");
            strSql.Append("CZRKFWCS=@CZRKFWCS,");
            strSql.Append("CZRKSSSSXQ=@CZRKSSSSXQ,");
            strSql.Append("CZRKZZ=@CZRKZZ,");
            strSql.Append("CZRKHH=@CZRKHH,");
            strSql.Append("CZRKJTGX=@CZRKJTGX");
            strSql.Append("GMSFHM=@GMSFHM");
            strSql.Append(" where ID=@ID");
            SqlParameter[] parameters = {
					new SqlParameter("@DYRQ", SqlDbType.DateTime),
					new SqlParameter("@CZRKXM", SqlDbType.NVarChar,20),
					new SqlParameter("@CZRKCYM", SqlDbType.NVarChar,10),
					new SqlParameter("@CZRKXB", SqlDbType.NVarChar,1),
					new SqlParameter("@CZRKMZ", SqlDbType.NVarChar,2),
					new SqlParameter("@CZRKCSRQ", SqlDbType.NVarChar,8),
					new SqlParameter("@CZRKCSDGJ", SqlDbType.NVarChar,10),
					new SqlParameter("@CZRKCSDSSX", SqlDbType.NVarChar,50),
					new SqlParameter("@JLX", SqlDbType.NVarChar,12),
					new SqlParameter("@CZRKCSDXZ", SqlDbType.NVarChar,50),
					new SqlParameter("@CZRKJGGJ", SqlDbType.NVarChar,20),
					new SqlParameter("@CZRKJGSSX", SqlDbType.NVarChar,50),
					new SqlParameter("@CZRKWHCD", SqlDbType.NVarChar,10),
					new SqlParameter("@CZRKHYZK", SqlDbType.NVarChar,2),
					new SqlParameter("@CZRKBYZK", SqlDbType.NVarChar,20),
					new SqlParameter("@CZRKSG", SqlDbType.NVarChar,10),
					new SqlParameter("@CZRKZY", SqlDbType.NVarChar,10),
					new SqlParameter("@CZRKFWCS", SqlDbType.NVarChar,100),
					new SqlParameter("@CZRKSSSSXQ", SqlDbType.NVarChar,50),
					new SqlParameter("@CZRKZZ", SqlDbType.NVarChar,50),
					new SqlParameter("@CZRKHH", SqlDbType.NVarChar,9),
					new SqlParameter("@CZRKJTGX", SqlDbType.NVarChar,2),
                    new SqlParameter("@GMSFHM", SqlDbType.NVarChar,18),
					new SqlParameter("@ID", SqlDbType.Int,4)};
            parameters[0].Value = model.DYRQ;
            parameters[1].Value = model.CZRKXM;
            parameters[2].Value = model.CZRKCYM;
            parameters[3].Value = model.CZRKXB;
            parameters[4].Value = model.CZRKMZ;
            parameters[5].Value = model.CZRKCSRQ;
            parameters[6].Value = model.CZRKCSDGJ;
            parameters[7].Value = model.CZRKCSDSSX;
            parameters[8].Value = model.JLX;
            parameters[9].Value = model.CZRKCSDXZ;
            parameters[10].Value = model.CZRKJGGJ;
            parameters[11].Value = model.CZRKJGSSX;
            parameters[12].Value = model.CZRKWHCD;
            parameters[13].Value = model.CZRKHYZK;
            parameters[14].Value = model.CZRKBYZK;
            parameters[15].Value = model.CZRKSG;
            parameters[16].Value = model.CZRKZY;
            parameters[17].Value = model.CZRKFWCS;
            parameters[18].Value = model.CZRKSSSSXQ;
            parameters[19].Value = model.CZRKZZ;
            parameters[20].Value = model.CZRKHH;
            parameters[21].Value = model.CZRKJTGX;
            parameters[22].Value = model.GMSFHM;
            parameters[23].Value = model.ID;

            int rows = DbHelperSQL_Jichu.ExecuteSql(strSql.ToString(), parameters);
            if (rows > 0)
            {
                return true;
            }
            else
            {
                return false;
            }
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public bool Delete(int ID)
        {

            StringBuilder strSql = new StringBuilder();
            strSql.Append("delete from hsczrk_dysj ");
            strSql.Append(" where ID=@ID");
            SqlParameter[] parameters = {
					new SqlParameter("@ID", SqlDbType.Int,4)
			};
            parameters[0].Value = ID;

            int rows = DbHelperSQL_Jichu.ExecuteSql(strSql.ToString(), parameters);
            if (rows > 0)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        /// <summary>
        /// 批量删除数据
        /// </summary>
        public bool DeleteList(string IDlist)
        {
            StringBuilder strSql = new StringBuilder();
            strSql.Append("delete from hsczrk_dysj ");
            strSql.Append(" where ID in (" + IDlist + ")  ");
            int rows = DbHelperSQL_Jichu.ExecuteSql(strSql.ToString());
            if (rows > 0)
            {
                return true;
            }
            else
            {
                return false;
            }
        }


        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public hsgsSHXX.Model.hsczrk_dysj GetModel(int ID)
        {

            StringBuilder strSql = new StringBuilder();
            strSql.Append("select  top 1 ID,DYRQ,CZRKXM,CZRKCYM,CZRKXB,CZRKMZ,CZRKCSRQ,CZRKCSDGJ,CZRKCSDSSX,JLX,CZRKCSDXZ,CZRKJGGJ,CZRKJGSSX,CZRKWHCD,CZRKHYZK,CZRKBYZK,CZRKSG,CZRKZY,CZRKFWCS,CZRKSSSSXQ,CZRKZZ,CZRKHH,CZRKJTGX from hsczrk_dysj ");
            strSql.Append(" where ID=@ID");
            SqlParameter[] parameters = {
					new SqlParameter("@ID", SqlDbType.Int,4)
			};
            parameters[0].Value = ID;

            hsgsSHXX.Model.hsczrk_dysj model = new hsgsSHXX.Model.hsczrk_dysj();
            DataSet ds = DbHelperSQL_Jichu.Query(strSql.ToString(), parameters);
            if (ds.Tables[0].Rows.Count > 0)
            {
                return DataRowToModel(ds.Tables[0].Rows[0]);
            }
            else
            {
                return null;
            }
        }


        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public hsgsSHXX.Model.hsczrk_dysj DataRowToModel(DataRow row)
        {
            hsgsSHXX.Model.hsczrk_dysj model = new hsgsSHXX.Model.hsczrk_dysj();
            if (row != null)
            {
                if (row["ID"] != null && row["ID"].ToString() != "")
                {
                    model.ID = int.Parse(row["ID"].ToString());
                }
                if (row["DYRQ"] != null && row["DYRQ"].ToString() != "")
                {
                    model.DYRQ = DateTime.Parse(row["DYRQ"].ToString());
                }
                if (row["CZRKXM"] != null)
                {
                    model.CZRKXM = row["CZRKXM"].ToString();
                }
                if (row["CZRKCYM"] != null)
                {
                    model.CZRKCYM = row["CZRKCYM"].ToString();
                }
                if (row["CZRKXB"] != null)
                {
                    model.CZRKXB = row["CZRKXB"].ToString();
                }
                if (row["CZRKMZ"] != null)
                {
                    model.CZRKMZ = row["CZRKMZ"].ToString();
                }
                if (row["CZRKCSRQ"] != null)
                {
                    model.CZRKCSRQ = row["CZRKCSRQ"].ToString();
                }
                if (row["CZRKCSDGJ"] != null)
                {
                    model.CZRKCSDGJ = row["CZRKCSDGJ"].ToString();
                }
                if (row["CZRKCSDSSX"] != null)
                {
                    model.CZRKCSDSSX = row["CZRKCSDSSX"].ToString();
                }
                if (row["JLX"] != null)
                {
                    model.JLX = row["JLX"].ToString();
                }
                if (row["CZRKCSDXZ"] != null)
                {
                    model.CZRKCSDXZ = row["CZRKCSDXZ"].ToString();
                }
                if (row["CZRKJGGJ"] != null)
                {
                    model.CZRKJGGJ = row["CZRKJGGJ"].ToString();
                }
                if (row["CZRKJGSSX"] != null)
                {
                    model.CZRKJGSSX = row["CZRKJGSSX"].ToString();
                }
                if (row["CZRKWHCD"] != null)
                {
                    model.CZRKWHCD = row["CZRKWHCD"].ToString();
                }
                if (row["CZRKHYZK"] != null)
                {
                    model.CZRKHYZK = row["CZRKHYZK"].ToString();
                }
                if (row["CZRKBYZK"] != null)
                {
                    model.CZRKBYZK = row["CZRKBYZK"].ToString();
                }
                if (row["CZRKSG"] != null)
                {
                    model.CZRKSG = row["CZRKSG"].ToString();
                }
                if (row["CZRKZY"] != null)
                {
                    model.CZRKZY = row["CZRKZY"].ToString();
                }
                if (row["CZRKFWCS"] != null)
                {
                    model.CZRKFWCS = row["CZRKFWCS"].ToString();
                }
                if (row["CZRKSSSSXQ"] != null)
                {
                    model.CZRKSSSSXQ = row["CZRKSSSSXQ"].ToString();
                }
                if (row["CZRKZZ"] != null)
                {
                    model.CZRKZZ = row["CZRKZZ"].ToString();
                }
                if (row["CZRKHH"] != null)
                {
                    model.CZRKHH = row["CZRKHH"].ToString();
                }
                if (row["CZRKJTGX"] != null)
                {
                    model.CZRKJTGX = row["CZRKJTGX"].ToString();
                }
                if (row["GMSFHM"] != null)
                {
                    model.CZRKJTGX = row["GMSFHM"].ToString();
                }
            }
            return model;
        }

        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetList(string strWhere)
        {
            StringBuilder strSql = new StringBuilder();
            strSql.Append("select ID,DYRQ,CZRKXM,CZRKCYM,CZRKXB,CZRKMZ,CZRKCSRQ,CZRKCSDGJ,CZRKCSDSSX,JLX,CZRKCSDXZ,CZRKJGGJ,CZRKJGSSX,CZRKWHCD,CZRKHYZK,CZRKBYZK,CZRKSG,CZRKZY,CZRKFWCS,CZRKSSSSXQ,CZRKZZ,CZRKHH,CZRKJTGX ");
            strSql.Append(" FROM hsczrk_dysj ");
            if (strWhere.Trim() != "")
            {
                strSql.Append(" where " + strWhere);
            }
            return DbHelperSQL_Jichu.Query(strSql.ToString());
        }

        /// <summary>
        /// 获得前几行数据
        /// </summary>
        public DataSet GetList(int Top, string strWhere, string filedOrder)
        {
            StringBuilder strSql = new StringBuilder();
            strSql.Append("select ");
            if (Top > 0)
            {
                strSql.Append(" top " + Top.ToString());
            }
            strSql.Append(" ID,DYRQ,CZRKXM,CZRKCYM,CZRKXB,CZRKMZ,CZRKCSRQ,CZRKCSDGJ,CZRKCSDSSX,JLX,CZRKCSDXZ,CZRKJGGJ,CZRKJGSSX,CZRKWHCD,CZRKHYZK,CZRKBYZK,CZRKSG,CZRKZY,CZRKFWCS,CZRKSSSSXQ,CZRKZZ,CZRKHH,CZRKJTGX ");
            strSql.Append(" FROM hsczrk_dysj ");
            if (strWhere.Trim() != "")
            {
                strSql.Append(" where " + strWhere);
            }
            strSql.Append(" order by " + filedOrder);
            return DbHelperSQL_Jichu.Query(strSql.ToString());
        }

        /// <summary>
        /// 获取记录总数
        /// </summary>
        public int GetRecordCount(string strWhere)
        {
            StringBuilder strSql = new StringBuilder();
            strSql.Append("select count(1) FROM hsczrk_dysj ");
            if (strWhere.Trim() != "")
            {
                strSql.Append(" where " + strWhere);
            }
            object obj = DbHelperSQL_Jichu.GetSingle(strSql.ToString());
            if (obj == null)
            {
                return 0;
            }
            else
            {
                return Convert.ToInt32(obj);
            }
        }
        /// <summary>
        /// 分页获取数据列表
        /// </summary>
        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
        {
            StringBuilder strSql = new StringBuilder();
            strSql.Append("SELECT * FROM ( ");
            strSql.Append(" SELECT ROW_NUMBER() OVER (");
            if (!string.IsNullOrEmpty(orderby.Trim()))
            {
                strSql.Append("order by T." + orderby);
            }
            else
            {
                strSql.Append("order by T.ID desc");
            }
            strSql.Append(")AS Row, T.*  from hsczrk_dysj T ");
            if (!string.IsNullOrEmpty(strWhere.Trim()))
            {
                strSql.Append(" WHERE " + strWhere);
            }
            strSql.Append(" ) TT");
            strSql.AppendFormat(" WHERE TT.Row between {0} and {1}", startIndex, endIndex);
            return DbHelperSQL_Jichu.Query(strSql.ToString());
        }

        /*
        /// <summary>
        /// 分页获取数据列表
        /// </summary>
        public DataSet GetList(int PageSize,int PageIndex,string strWhere)
        {
            SqlParameter[] parameters = {
                    new SqlParameter("@tblName", SqlDbType.VarChar, 255),
                    new SqlParameter("@fldName", SqlDbType.VarChar, 255),
                    new SqlParameter("@PageSize", SqlDbType.Int),
                    new SqlParameter("@PageIndex", SqlDbType.Int),
                    new SqlParameter("@IsReCount", SqlDbType.Bit),
                    new SqlParameter("@OrderType", SqlDbType.Bit),
                    new SqlParameter("@strWhere", SqlDbType.VarChar,1000),
                    };
            parameters[0].Value = "hsczrk_dysj";
            parameters[1].Value = "ID";
            parameters[2].Value = PageSize;
            parameters[3].Value = PageIndex;
            parameters[4].Value = 0;
            parameters[5].Value = 0;
            parameters[6].Value = strWhere;	
            return DbHelperSQL_Jichu.RunProcedure("UP_GetRecordByPage",parameters,"ds");
        }*/

        #endregion  BasicMethod
        #region  ExtensionMethod
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public void AddList(List<hsgsSHXX.Model.hsczrk_dysj> list)
        {
            StringBuilder strSql = new StringBuilder();
            List<CommandInfo> cmdList = new List<CommandInfo>();
            CommandInfo cmds = new CommandInfo();
            foreach (Model.hsczrk_dysj model in list)
            {
                strSql = new StringBuilder();
                cmds = new CommandInfo();

                strSql.Append("insert into hsczrk_dysj(");
                strSql.Append("DYRQ,CZRKXM,CZRKCYM,CZRKXB,CZRKMZ,CZRKCSRQ,CZRKCSDGJ,CZRKCSDSSX,JLX,CZRKCSDXZ,CZRKJGGJ,CZRKJGSSX,CZRKWHCD,CZRKHYZK,CZRKBYZK,CZRKSG,CZRKZY,CZRKFWCS,CZRKSSSSXQ,CZRKZZ,CZRKHH,CZRKJTGX,GMSFHM)");
                strSql.Append(" values (");
                strSql.Append("@DYRQ,@CZRKXM,@CZRKCYM,@CZRKXB,@CZRKMZ,@CZRKCSRQ,@CZRKCSDGJ,@CZRKCSDSSX,@JLX,@CZRKCSDXZ,@CZRKJGGJ,@CZRKJGSSX,@CZRKWHCD,@CZRKHYZK,@CZRKBYZK,@CZRKSG,@CZRKZY,@CZRKFWCS,@CZRKSSSSXQ,@CZRKZZ,@CZRKHH,@CZRKJTGX,@GMSFHM)");
                strSql.Append(";select @@IDENTITY");
                SqlParameter[] parameters = {
					new SqlParameter("@DYRQ", SqlDbType.DateTime),
					new SqlParameter("@CZRKXM", SqlDbType.NVarChar,20),
					new SqlParameter("@CZRKCYM", SqlDbType.NVarChar,10),
					new SqlParameter("@CZRKXB", SqlDbType.NVarChar,1),
					new SqlParameter("@CZRKMZ", SqlDbType.NVarChar,2),
					new SqlParameter("@CZRKCSRQ", SqlDbType.NVarChar,8),
					new SqlParameter("@CZRKCSDGJ", SqlDbType.NVarChar,10),
					new SqlParameter("@CZRKCSDSSX", SqlDbType.NVarChar,50),
					new SqlParameter("@JLX", SqlDbType.NVarChar,12),
					new SqlParameter("@CZRKCSDXZ", SqlDbType.NVarChar,50),
					new SqlParameter("@CZRKJGGJ", SqlDbType.NVarChar,20),
					new SqlParameter("@CZRKJGSSX", SqlDbType.NVarChar,50),
					new SqlParameter("@CZRKWHCD", SqlDbType.NVarChar,10),
					new SqlParameter("@CZRKHYZK", SqlDbType.NVarChar,2),
					new SqlParameter("@CZRKBYZK", SqlDbType.NVarChar,20),
					new SqlParameter("@CZRKSG", SqlDbType.NVarChar,10),
					new SqlParameter("@CZRKZY", SqlDbType.NVarChar,10),
					new SqlParameter("@CZRKFWCS", SqlDbType.NVarChar,100),
					new SqlParameter("@CZRKSSSSXQ", SqlDbType.NVarChar,50),
					new SqlParameter("@CZRKZZ", SqlDbType.NVarChar,50),
					new SqlParameter("@CZRKHH", SqlDbType.NVarChar,50),
					new SqlParameter("@CZRKJTGX", SqlDbType.NVarChar,2),
                    new SqlParameter("@GMSFHM", SqlDbType.NVarChar,18)};
                parameters[0].Value = DateTime.Now;
                parameters[1].Value = model.CZRKXM;
                parameters[2].Value = model.CZRKCYM;
                parameters[3].Value = model.CZRKXB;
                parameters[4].Value = model.CZRKMZ;
                parameters[5].Value = model.CZRKCSRQ;
                parameters[6].Value = model.CZRKCSDGJ;
                parameters[7].Value = model.CZRKCSDSSX;
                parameters[8].Value = model.JLX;
                parameters[9].Value = model.CZRKCSDXZ;
                parameters[10].Value = model.CZRKJGGJ;
                parameters[11].Value = model.CZRKJGSSX;
                parameters[12].Value = model.CZRKWHCD;
                parameters[13].Value = model.CZRKHYZK;
                parameters[14].Value = model.CZRKBYZK;
                parameters[15].Value = model.CZRKSG;
                parameters[16].Value = model.CZRKZY;
                parameters[17].Value = model.CZRKFWCS;
                parameters[18].Value = model.CZRKSSSSXQ;
                parameters[19].Value = model.CZRKZZ;
                parameters[20].Value = model.CZRKHH;
                parameters[21].Value = model.CZRKJTGX;
                parameters[22].Value = model.GMSFHM;
                cmds.CommandText = strSql.ToString();
                cmds.Parameters = parameters;
                cmdList.Add(cmds);
            }
            DbHelperSQL_Jichu.ExecuteSqlTranWithIndentity(cmdList, 1800);




        }
        #endregion  ExtensionMethod
    }
}

